﻿using Caliburn.Micro;

using Microsoft.Practices.Unity;

using TheKitchen.Client.ViewModels;

namespace TheKitchen.Client.Services
{
    public class ApplicationController : IApplicationController
    {
        [Dependency]
        public IWindowManager WindowManager { get; set; }

        public void ShowRecipeAddingDialog()
        {
            var newRecipeViewModel = IoC.GetInstance(typeof(NewRecipeViewModel), null);
            WindowManager.ShowDialog(newRecipeViewModel);
        }
    }
}